/**
 * Creates a SVG image element
 * @class SvgImage
 * @extend SvgElement
 */
var SvgImage = {
    /**
     * @private
     */
    _title: null,
    
    /**
     * @private
     */
    init: function(href, parent, canvas) {
        this._super("image", parent, canvas);
        this.dom.setAttributeNS("http://www.w3.org/1999/xlink", 'href', href);
        this._title = new SvgElement("title", this.dom, this.canvas);
        this._title.dom.appendChild(document.createTextNode(""));
    },
    /**
     * @method title
     * @param {String} t Image title text
     * 
     */
    title: function(t) {
        this._title.dom.childNodes[0].nodeValue = t;        
    }
};
SvgImage = SvgElement.extend(SvgImage);